/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.designpatterns.structural.bridge;

/**
 *
 * @author BassonCJ
 */
public class BridgeFactory {
    private static BridgeFactory bridgeFactory = null;
    
    private BridgeFactory(){
        
    }
    
    public synchronized static BridgeFactory getInstance(){
        if(bridgeFactory == null){
            bridgeFactory = new BridgeFactory();
        }
        return bridgeFactory;
    }
    
    public VehicleFactory getVehicleFactory(){
        return new VehicleFactory();
    }
    
    public EngineFactory getEngineFactory(){
        return new EngineFactory();
    }
}
